//
//  MyCollectTableViewCell.m
//  B
//
//  Created by Sunpeng on 15/11/16.
//  Copyright © 2015年 wangzhan. All rights reserved.
//

#import "MyCollectTableViewCell.h"

@implementation MyCollectTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

-(void)createSubViews
{
    self.myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 70*XWIDTH, 70*XHIGHT)];
    [self.contentView addSubview:self.myImageView];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(85*XWIDTH, 10, 250*XWIDTH, 30*XHIGHT)];
    [self.contentView addSubview:self.titleLabel];
    self.titleLabel.numberOfLines = 0;
    
    self.autorLabel = [[UILabel alloc]initWithFrame:CGRectMake(90*XWIDTH, 40*XHIGHT, 250*XWIDTH, 30*XHIGHT)];
    self.autorLabel.font = [UIFont systemFontOfSize:15*XHIGHT];
    [self.contentView addSubview:self.autorLabel];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
